package com.smooth.dao.gen;

import com.smooth.dao.gen.bean.BizJob;
import com.smooth.dao.gen.bean.BizJobExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface BizJobMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @SelectProvider(type=BizJobSqlProvider.class, method="countByExample")
    long countByExample(BizJobExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @DeleteProvider(type=BizJobSqlProvider.class, method="deleteByExample")
    int deleteByExample(BizJobExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @Delete({
        "delete from biz_job",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @Insert({
        "insert into biz_job (id, job_title, ",
        "job_detail, job_status, ",
        "amount_start, amount_end, ",
        "job_years, person_num, ",
        "link_info, province_id, ",
        "province_name, city_id, ",
        "city_name, college_level, ",
        "comp_id, comp_name, ",
        "comp_info, comp_address, ",
        "create_date, update_date)",
        "values (#{id,jdbcType=VARCHAR}, #{jobTitle,jdbcType=VARCHAR}, ",
        "#{jobDetail,jdbcType=LONGVARCHAR}, #{jobStatus,jdbcType=SMALLINT}, ",
        "#{amountStart,jdbcType=INTEGER}, #{amountEnd,jdbcType=INTEGER}, ",
        "#{jobYears,jdbcType=SMALLINT}, #{personNum,jdbcType=VARCHAR}, ",
        "#{linkInfo,jdbcType=LONGVARCHAR}, #{provinceId,jdbcType=VARCHAR}, ",
        "#{provinceName,jdbcType=VARCHAR}, #{cityId,jdbcType=VARCHAR}, ",
        "#{cityName,jdbcType=VARCHAR}, #{collegeLevel,jdbcType=VARCHAR}, ",
        "#{compId,jdbcType=VARCHAR}, #{compName,jdbcType=VARCHAR}, ",
        "#{compInfo,jdbcType=LONGVARCHAR}, #{compAddress,jdbcType=VARCHAR}, ",
        "#{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP})"
    })
    int insert(BizJob record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @InsertProvider(type=BizJobSqlProvider.class, method="insertSelective")
    int insertSelective(BizJob record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @SelectProvider(type=BizJobSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="job_title", property="jobTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="job_detail", property="jobDetail", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="job_status", property="jobStatus", jdbcType=JdbcType.SMALLINT),
        @Result(column="amount_start", property="amountStart", jdbcType=JdbcType.INTEGER),
        @Result(column="amount_end", property="amountEnd", jdbcType=JdbcType.INTEGER),
        @Result(column="job_years", property="jobYears", jdbcType=JdbcType.SMALLINT),
        @Result(column="person_num", property="personNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="link_info", property="linkInfo", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="province_id", property="provinceId", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR),
        @Result(column="city_id", property="cityId", jdbcType=JdbcType.VARCHAR),
        @Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_level", property="collegeLevel", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_id", property="compId", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_name", property="compName", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_info", property="compInfo", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="comp_address", property="compAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<BizJob> selectByExample(BizJobExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @Select({
        "select",
        "id, job_title, job_detail, job_status, amount_start, amount_end, job_years, ",
        "person_num, link_info, province_id, province_name, city_id, city_name, college_level, ",
        "comp_id, comp_name, comp_info, comp_address, create_date, update_date",
        "from biz_job",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="job_title", property="jobTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="job_detail", property="jobDetail", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="job_status", property="jobStatus", jdbcType=JdbcType.SMALLINT),
        @Result(column="amount_start", property="amountStart", jdbcType=JdbcType.INTEGER),
        @Result(column="amount_end", property="amountEnd", jdbcType=JdbcType.INTEGER),
        @Result(column="job_years", property="jobYears", jdbcType=JdbcType.SMALLINT),
        @Result(column="person_num", property="personNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="link_info", property="linkInfo", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="province_id", property="provinceId", jdbcType=JdbcType.VARCHAR),
        @Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR),
        @Result(column="city_id", property="cityId", jdbcType=JdbcType.VARCHAR),
        @Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR),
        @Result(column="college_level", property="collegeLevel", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_id", property="compId", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_name", property="compName", jdbcType=JdbcType.VARCHAR),
        @Result(column="comp_info", property="compInfo", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="comp_address", property="compAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    BizJob selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @UpdateProvider(type=BizJobSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizJob record, @Param("example") BizJobExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @UpdateProvider(type=BizJobSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizJob record, @Param("example") BizJobExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @UpdateProvider(type=BizJobSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizJob record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_job
     */
    @Update({
        "update biz_job",
        "set job_title = #{jobTitle,jdbcType=VARCHAR},",
          "job_detail = #{jobDetail,jdbcType=LONGVARCHAR},",
          "job_status = #{jobStatus,jdbcType=SMALLINT},",
          "amount_start = #{amountStart,jdbcType=INTEGER},",
          "amount_end = #{amountEnd,jdbcType=INTEGER},",
          "job_years = #{jobYears,jdbcType=SMALLINT},",
          "person_num = #{personNum,jdbcType=VARCHAR},",
          "link_info = #{linkInfo,jdbcType=LONGVARCHAR},",
          "province_id = #{provinceId,jdbcType=VARCHAR},",
          "province_name = #{provinceName,jdbcType=VARCHAR},",
          "city_id = #{cityId,jdbcType=VARCHAR},",
          "city_name = #{cityName,jdbcType=VARCHAR},",
          "college_level = #{collegeLevel,jdbcType=VARCHAR},",
          "comp_id = #{compId,jdbcType=VARCHAR},",
          "comp_name = #{compName,jdbcType=VARCHAR},",
          "comp_info = #{compInfo,jdbcType=LONGVARCHAR},",
          "comp_address = #{compAddress,jdbcType=VARCHAR},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(BizJob record);
}